package com.briup.cms.web.controller;


import com.briup.cms.bean.Slideshow;
import com.briup.cms.dao.SlideshowDao;
import com.briup.cms.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author briup
 * @since 2024-11-19
 */
@RestController
@RequestMapping("/slideshow")
public class SlideshowController {
    @Autowired
    private SlideshowDao slideshowDao;

    @GetMapping("/test")
    public Result test() {
        System.out.println("in slideshow test...");

        Slideshow slideshow = slideshowDao.selectById(1);

        return Result.success(slideshow);
    }
}